//
//  MNDLoginNaviViewController.m
//  minidai
//
//  Created by Steven.Yung on 2017/6/1.
//  Copyright © 2017年 迷你金服. All rights reserved.
//

#import "MNDLoginNaviViewController.h"

@interface MNDLoginNaviViewController ()

@end

@implementation MNDLoginNaviViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(loginState:) name:@"login_state" object:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)loginState:(NSNotification *)notification {
    BOOL isSuccess = [notification.object boolValue];
    
    if (self.loginCompletedBlock) {
        self.loginCompletedBlock(isSuccess);
    }
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
